<el-dialog :close-on-click-modal="false"  :close-on-press-escape="false"  class="dialogStyleBase" :title="mixinEdit_editTitle" width="500px" :visible.sync="mixinEdit_editVisible"
    :before-close="function(){mixinEdit_editBoxClose('editForm')}" append-to-body>
    <div class="dialogStyleBaseBox" v-loading="mixinEdit_loading">
        <el-form ref="editForm" :model="form" label-width="100px" label-position="left">
            <el-form-item label="规则名称" prop="rightRuleName"
                :rules="{trigger: ['blur', 'change'], required: true, message: '规则名称不能为空'}">
                <el-input v-model="form.rightRuleName" maxlength="10" show-word-limit></el-input>
            </el-form-item>
            <el-form-item label="默认折扣" v-if="rightType != 1" prop="discountValue"
                :rules="[{trigger: ['blur', 'change'] ,validator:function(rule, value, callback){validator(rule, value, callback)}}]">
                <el-input v-model="form.discountValue" style="width:100px;margin-right: 10px;">
                </el-input>
            </el-form-item>
        </el-form>
    </div>
    <div slot="footer">
        <div class="btns">
            <el-button :disabled="mixinEdit_loading" @click="mixinEdit_editBoxClose('editForm')">取 消</el-button>
            <el-button :disabled="mixinEdit_loading" type="primary"
                @click="mixinEdit_editFormSubmit({model:'form',ref:'editForm'})">确定</el-button>
        </div>
    </div>
</el-dialog>